package com.zch.jh.service.dto;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * A DTO for the {@link com.zch.jh.domain.ItemType} entity.
 */
public class ItemTypeDTO implements Serializable {
    
    private Long id;

    private String typeName;

    private BigDecimal offset;

    private String des;

    private String memo;

    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public BigDecimal getOffset() {
        return offset;
    }

    public void setOffset(BigDecimal offset) {
        this.offset = offset;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof ItemTypeDTO)) {
            return false;
        }

        return id != null && id.equals(((ItemTypeDTO) o).id);
    }

    @Override
    public int hashCode() {
        return 31;
    }

    // prettier-ignore
    @Override
    public String toString() {
        return "ItemTypeDTO{" +
            "id=" + getId() +
            ", typeName='" + getTypeName() + "'" +
            ", offset=" + getOffset() +
            ", des='" + getDes() + "'" +
            ", memo='" + getMemo() + "'" +
            "}";
    }
}
